Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

fix: java path detection failures on linux #1138

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

midchildan
Copy link
Contributor

readlink was being invoked as "readlink" "-f path/to/java". It should've been "readlink" "-f" "path/to/java" instead.

This can verified by running the tests and looking at the output of the following command:

$ sudo execsnoop -q | grep readlink
readlink         2060   1925     0 "/nix/store/0y7rv26ffa359wvqd3js94cn73z882fg-coreutils-8.32/bin/readlink" "-f /nix/store/d5mpdil4c8z466f9zyxywxg5lm2zk3ls-openjdk-8u272-b10-jre/bin/java"
readlink         2081   1925     0 "/nix/store/0y7rv26ffa359wvqd3js94cn73z882fg-coreutils-8.32/bin/readlink" "-f /nix/store/xr5xm2bmfhd02v8h9ghzmhbcdc49ms55-openjdk-8u272-b10/lib/openjdk/jre/bin/java"

readlink was being invoked as "readlink" "-f path/to/java". It should've
been "readlink" "-f" "path/to/java" instead.

This can verified by running the tests and looking at the output of the
following command:

    $ sudo execsnoop -q | grep readlink
    readlink         2060   1925     0 "/nix/store/0y7rv26ffa359wvqd3js94cn73z882fg-coreutils-8.32/bin/readlink" "-f /nix/store/d5mpdil4c8z466f9zyxywxg5lm2zk3ls-openjdk-8u272-b10-jre/bin/java"
    readlink         2081   1925     0 "/nix/store/0y7rv26ffa359wvqd3js94cn73z882fg-coreutils-8.32/bin/readlink" "-f /nix/store/xr5xm2bmfhd02v8h9ghzmhbcdc49ms55-openjdk-8u272-b10/lib/openjdk/jre/bin/java"
@mlangkabel
Copy link
Contributor

Thanks!

@mlangkabel mlangkabel merged commit 64b42f1 into CoatiSoftware:master Feb 15, 2021
@midchildan midchildan deleted the fix/javapath branch February 17, 2021 12:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants